# -*- coding: utf-8 -*-,
# @File : 5.微信公众平台登陆.py,
# @Author : lidong,
# @IDEA: PyCharm
# @Time :  2022/5/13 09:28
import execjs

# 实例化一个node对象
node = execjs.get()

# js文件编译
ctx = node.compile(open('./wechat.js', encoding='utf-8').read())

funName = "getpwd('{}')".format(1234)
pwd = ctx.eval(funName)
print(pwd)


